//
// Created by qf on 2025/3/27.
//
#include "../include/view_point_server/view_point_server.h"

int main(int argc, char **argv) {
    ros::init(argc, argv, "viewpoint_server");
    ros::NodeHandle nh("~");

    // todo 从lanuch文件中读取模式参数，并创建ViewPointServer对象
    ViewPointServer server(ViewPointServer::PUBLISH, nh);

    ROS_INFO("Viewpoint server started");
    ros::Rate loop_rate(60);
    while (ros::ok()) {
        ros::spinOnce();
        loop_rate.sleep();
    }
    return 0;
}